<?php
global $user;
if(empty($user)) tr_redirect(get_option('siteurl'));

$xajax = new xajax(); 
//$xajax->debugOn(); // Uncomment this line to turn debugging on
$xajax->registerFunction("logoutFunc");
$xajax->registerFunction("editProfile");
$xajax->registerFunction("processEditProfileForm");
$xajax->processRequests();
?>

<?php get_header(); ?>

<DIV id=container><br/>


<DIV id=sub-nav>
<UL>
  <LI><A href="<?=get_option('siteurl')?>">首页</A> </LI>
  <LI><A href="./?user=<?php the_user_name(); ?>">文章收藏</A> </LI>
  <LI class=active><SPAN>个人资料</SPAN> </LI>
  </UL><BR></DIV>

<BR>
<DIV id=contents-wide>
<FIELDSET><LEGEND>用户信息 <?php edit_userprofile_link("编辑","(",")"); ?></LEGEND>
<DL>
  <DT>用户名: </DT>
  <DD><?php the_user_name(); ?></DD>
  <DT>博客地址: <?php get_user_blog(); ?></DT>
  <DT>提交的文章: </DT>
  <DD><?php the_user_submitted_number(); ?> (<A href="./?user=<?php the_user_name(); ?>&submitted">查看</A>) </DD>
  <DT>收藏的文章: </DT>
  <DD><?php the_user_favorited_number(); ?> (<A href="./?user=<?php the_user_name(); ?>">查看</A>) </DD>
</DL></FIELDSET> 
</DIV></DIV>
  
<?php get_footer(); ?>

